package com.baizhi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CmfzAlbum {
    @TableId(type = IdType.AUTO)
    @Excel(name = "专辑编号")
    private Integer albumId;
    @Excel(name = "专辑名称")
    private String albumName;
    @Excel(name = "专辑作者")
    private String albumAuthor;
    @Excel(name = "专辑讲述者")
    private String albumTeller;
    @Excel(name = "专辑音频数")
    private Integer albumEpisodes;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "专辑发布日期")
    private Date albumDate;
    @Excel(name = "专辑内容")
    private String albumContent;
    @Excel(name = "专辑图片")
    private String albumImage;
    @Excel(name = "专辑星级")
    private Integer albumStar;
}
